testsuite: Stop requiring diff
authorMatthias Clasen <mclasen@redhat.com>
Fri, 22 Jan 2021 04:57:24 +0000 (23:57 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 Jan 2021 04:57:24 +0000 (23:57 -0500)
commite808fb424ae10baa31ba92a2e3bbec38689c246a
treecdae8d59e963102184769b55e04d3c137d4edfb6
parent6c54abeca719cb98d6ce84c0c03114b426cb1c51
testsuite: Stop requiring diff

Unify the many copies of diff_with_file in one source
file, and patch it to detect diff at runtime and fall
back to a simple strcmp if we don't have it. Make all
tests use this new testutils.c, and stop requiring
diff for building the tests.

This should let us allow to build on Windows with the
default value for -Dbuild-tests.
13 files changed:
testsuite/css/change/meson.build
testsuite/css/change/test-css-change.c
testsuite/css/nodes/meson.build
testsuite/css/nodes/test-css-nodes.c
testsuite/css/parser/meson.build
testsuite/css/parser/test-css-parser.c
testsuite/css/style/meson.build
testsuite/css/style/test-css-style.c
testsuite/gtk/meson.build
testsuite/gtk/test-focus-chain.c
testsuite/meson.build
testsuite/testutils.c [new file with mode: 0644]
testsuite/testutils.h [new file with mode: 0644]